package com.zhidisoft.crm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.zhidisoft.crm.dao.ISysLoginMapper;
import com.zhidisoft.crm.entity.Login;
import com.zhidisoft.crm.entity.SysFunction;
import com.zhidisoft.crm.entity.SysUser;
import com.zhidisoft.crm.service.ISysLoginService;

@Service
@Transactional
public class SysLoginImpl implements ISysLoginService{

	@Autowired
	ISysLoginMapper dao;
	
	@Override
	public SysUser password(String username) {
		return dao.password(username);
	}

	@Override
	public List<SysFunction> functions(String username) {
		return dao.functions(username);
	}

}
